<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return dialogSearch(this);" action="${pageContext.request.contextPath}/customer/productInventory/listProduct?id=${requestScope.spid}" method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
 		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField" value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection" value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>产品：<input type="text" name="pname" value="${requestScope.dwzPageBean.countResultMap.pname}" placeholder="输入产品" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div> 
	</form>
</div>
<div class="pageContent">
	<table class="table" targetType="dialog" asc="asc" desc="desc" width="100%" layoutH="138">
		<thead>
			<tr>
				<th orderField="pname" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'pname'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>产品</th>
				<th orderField="inventory" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'inventory'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>库存</th>
				<th orderField="remark" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'remark'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>备注</th>
				
			</tr>
		</thead>
		<tbody>

			<c:if test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
				<c:forEach var="record" items="${requestScope.dwzPageBean.recordList}" varStatus="status">
						<td>${record.pname}</td>
						<td>${record.inventory}</td>
						<td>${record.remark}</td>
					</tr>
				</c:forEach>
			</c:if>
		</tbody>
	</table>
	<!-- 分页条 -->
	<script type="text/javascript">
		function close(){
			console.log("66666");
			$.pdialog.reload("${pageContext.request.contextPath}/customer/shopFollow/check?id=${spid}",{dialogId:"genjin",callback:null});
			return true;
		}
/* 		function delclose(){
			console.log("66666");
			$.pdialog.reload("${pageContext.request.contextPath}/customer/shopFollow/check?id=${spid}",{dialogId:"genjin",callback:null});
			return true;
		} */
	</script>
	<%@include file="/WEB-INF/page/inc/dialogPageBar.jsp"%>
</div>